//
//  CommonViewController.m
//  hehenianMobile
//
//  Created by 余海华 on 16/5/9.
//  Copyright © 2016年 huihu. All rights reserved.
//

#import "CommonViewController.h"
#import "IAuthQuery.h"
#import "DHNavigationViewController.h"


@interface CommonViewController ()<IAuthQuery>

@end

@implementation CommonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor colorFromHexString:@"#F6F6F6"];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//- (LoginViewController *)checkLoginWithLoginedBlock:(KSuccessBlock)loginedBlock
//                                   loginCancelBlock:(KCancelBlock)cancelBlock {
//    
//    
//        return [self checkLogin:loginedBlock cancel:cancelBlock callBackAfterDismissed:NO];
//}
//
//
//-(LoginViewController*)checkLogin:(KSuccessBlock)loginSuccessBlock cancel:(KCancelBlock)cancelBlock callBackAfterDismissed:(BOOL)yesOrNo
//{
//    if([GetCoreI(IAuthQuery) getUserId].length < 1){
//        
//        LoginViewController *_LoginViewController = [[LoginViewController alloc] init];
//        _LoginViewController.successBlock = loginSuccessBlock;
//        _LoginViewController.cancelBlock = cancelBlock;
//        DHNavigationViewController *userNav = [[DHNavigationViewController alloc]
//                                                 initWithRootViewController:_LoginViewController];
//        [self presentViewController:userNav animated:YES completion:nil];
//        return _LoginViewController;
//    }
//    else
//    {
//        if (loginSuccessBlock) {
//            loginSuccessBlock();
//        }
//        return nil;
//    }
//}

@end
